package com.itheima.Test1;

public class ShowHandlerDemo {
    public static void main(String[] args) {
        useShowHandler(()->{
            System.out.println("Lambda练习");
        });


        useShowHandler(new ShowHandler() {
            @Override
            public void show() {
                System.out.println("1");
            }
        });
    }
    public static void useShowHandler(ShowHandler s){
        s.show();
    }
}


interface ShowHandler{
   public abstract void show();
}
